package view.MainWindow.Conponents;

import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;

public class ContainerTopNavigator extends JPanel {
    ArrayList<ButtonPanel> internal;
    ContainerTopNavigator(){
        internal = new ArrayList<>();
        setLayout(new FlowLayout(FlowLayout.LEFT)); // 靠左排列
        setBackground(Color.LIGHT_GRAY);
    }
    public void Insert(ButtonPanel buttonPanel){
        internal.add(buttonPanel);
    }
    public void Delete(ButtonPanel buttonPanel){
        internal.remove(buttonPanel);
    }
}
